﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MindMapper.Business
{
    public static class ObjectManager
    {
        private static Dictionary<Type, object> refs = new Dictionary<Type, object>();

        public static void Register<T>(T obj)
        {
            refs[typeof(T)] = obj;
        }

        public static T Get<T>()
        {
            return (T)refs[typeof(T)];
        }
    }
}
